package com.chen.web_chat.controller;



import com.chen.web_chat.entity.vo.Result;
import com.chen.web_chat.service.IUserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 个人信息表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-04-12
 */
@Api(tags = "用户接口")
@RestController
@RequestMapping("api/user-info")
public class UserInfoController {
    @Autowired
    IUserInfoService userInfoService;

    @ApiOperation("获取用户信息")
    @GetMapping("/getUserInfo")
    public String getUserInfo(){
        return userInfoService.getById(1).getUserName();
    }
}
